<?php
/**
 * sample to test
 *
 * http://localhost/index.php/zone/default/entry/a/b/c
 * http://localhost/index.php/zone-default-entry-a-b-c.html
 *
 */
require_once("global.php");

SlightPHP::setDebug(true);
SlightPHP::setAppDir(ROOT_APP);
SlightPHP::setDefaultZone("control");
$config=config::readcof('config');
SlightPHP::setDefaultPage($config['website']['DEFAULT_CONTROL']);
SlightPHP::setDefaultEntry($config['website']['DEFAULT_ACTION']);
SlightPHP::setSplitFlag($config['website']['DEFAULT_SPLITFLAG']);
SlightPHP::setZoneAlias("control",$config['website']['DEFAULT_CONTROL_URL']);


SDb::setConfigFile(ROOT_CONFIG. "/db.ini");
#SRoute::setConfigFile(ROOT_CONFIG."/route.ini");
#SCache::setConfigFile(ROOT_CONFIG."/cache.ini");

if(($r=SlightPHP::run())===false){
	header('HTTP/1.1 404 Not Found');
	header('Status: 404 Not Found');
	include ROOT.DS.$config['404page']['page'];
}
